package testHashMap;

import cn.hutool.core.util.RandomUtil;
import lombok.extern.java.Log;

import java.util.*;

/**
 * @Author Mr.Wen
 * @Version 1.0
 */
@Log
public class Test1 {
    public static void main(String[] args) {
        HashMap<String, Integer> map = new HashMap<>();
        for (int i = 0; i < 16; i++) {
            map.put(UUID.randomUUID().toString(), RandomUtil.getRandom().nextInt());
        }
        for (Map.Entry<String, Integer> entry : map.entrySet()) {
            System.out.println("key: " + entry.getKey() + "\tvalue: " + entry.getValue());
        }
        HashSet<Object> objects = new HashSet<>();
        objects.add("1");
        objects.add("2");
        objects.add("3");
        System.out.println("objects = " + objects);
    }


}
